/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package javaclientcp3110.Model.Product;

import common.DAO.Factory.DAOFactory;
import common.Objects.Product;

/**
 *
 * @author Slasher
 */
public class ProductEditModel {
    private Product editProduct;

    public ProductEditModel() {
        editProduct = new Product();
    }

    public Product getEditProduct() {
        return editProduct;
    }

    public boolean editProduct() {
       return DAOFactory.getDAOFactory().getProductDAO().editProduct(editProduct);
    }

    public void setEditProduct(Product editProduct) {
        this.editProduct = editProduct;
    }
}
